package com.chris.datacnter.dto;


import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;


@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class ChrisException extends RuntimeException{
   private int code;
   private String message;
   private String describe;

    public ChrisException(String _message)
    {
        message=_message;
    }

    public ChrisException(int _code,String _message)
    {
        code=_code;
        message=_message;
    }

    public ChrisException(int _code,String _message,String _describe)
    {
        code=_code;
        message=_message;
        describe=_describe;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
